home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / hf^k-2.dms / in.adf / MUIClass.Lha / Include / Classes / TWiMUI / Palette.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-06  |  1.4 KB  |  53 lines

  1. //
  2. //  $VER: Palette.h     1.2 (02 Sep 1996)
  3. //
  4. //    c 1996 Thomas Wilhelmi
  5. //
  6. //
  7. // Address : Taunusstrasse 14
  8. //           61138 Niederdorfelden
  9. //           Germany
  10. //
  11. //  E-Mail : willi@twi.rhein-main.de
  12. //
  13. //   Phone : +49 (0)6101 531060
  14. //   Fax   : +49 (0)6101 531061
  15. //
  16. //
  17. //  $HISTORY:
  18. //
  19. //  16 Jun 1996 :   1.0 : first public Release
  20. //
  21. //  02 Sep 1996 :   1.2 : Neu:
  22. //                        - ClassNum() für Exception-Handling.
  23. //                        Änderungen
  24. //                        - Parameter des Copy-Konstruktor als 'const'-Parameter definiert
  25. //
  26.  
  27. #ifndef CPP_TWIMUI_PALETTE_H
  28. #define CPP_TWIMUI_PALETTE_H
  29.  
  30. #ifndef CPP_TWIMUI_GROUP_H
  31. #include <classes/twimui/group.h>
  32. #endif
  33.  
  34. class MUIPalette : public MUIGroup
  35.     {
  36.     protected:
  37.         virtual const ULONG ClassNum() const;
  38.     public:
  39.         MUIPalette(const struct TagItem *t) : MUIGroup(MUIC_Palette) { init(t); };
  40.         MUIPalette(const Tag, ...);
  41.         MUIPalette() : MUIGroup(MUIC_Palette) { };
  42.         MUIPalette(const MUIPalette &);
  43.         virtual ~MUIPalette();
  44.         MUIPalette &operator= (const MUIPalette &);
  45.         struct MUI_Palette_Entry *Entries() const { return((MUI_Palette_Entry *)get(MUIA_Palette_Entries,NULL)); };
  46.         void Groupable(const BOOL p) { set(MUIA_Palette_Groupable,(ULONG)p); };
  47.         BOOL Groupable() const { return((BOOL)get(MUIA_Palette_Groupable,TRUE)); };
  48.         void Names(const STRPTR *p) { set(MUIA_Palette_Names,(ULONG)p); };
  49.         STRPTR *Names() const { return((STRPTR *)get(MUIA_Palette_Names,NULL)); };
  50.     };
  51.  
  52. #endif
  53.